package com.winner.chain_of_responsibility_pattern;

import lombok.Data;

/**
 * 抽象处理者类
 */
@Data
public abstract class Handler {
    // 处理者姓名
    protected String name;
    // 下一个处理者
    protected Handler nextHandler;

    Handler(String name) {
        this.name = name;
    }

    //处理请假
    public abstract boolean process(LeaveRequest leaveRequest);
}
